package com.test.test_rest.miner_pool.domain.gen;

import java.io.Serializable;
import java.util.Date;

public class SuperAppVersion implements Serializable {
    private Integer id;

    /**
     * 更新值
     */
    private Integer updateNum;

    /**
     * 提示更新内容
     */
    private String content;

    /**
     * 显示版本号(1.0.1)
     */
    private String version;

    /**
     * 平台ios/android
     */
    private String platform;

    /**
     * 下载更新地址
     */
    private String downUrl;

    private Date createTime;

    private Date updateTime;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 更新值
     */
    public Integer getUpdateNum() {
        return updateNum;
    }

    /**
     * 更新值
     */
    public void setUpdateNum(Integer updateNum) {
        this.updateNum = updateNum;
    }

    /**
     * 提示更新内容
     */
    public String getContent() {
        return content;
    }

    /**
     * 提示更新内容
     */
    public void setContent(String content) {
        this.content = content;
    }

    /**
     * 显示版本号(1.0.1)
     */
    public String getVersion() {
        return version;
    }

    /**
     * 显示版本号(1.0.1)
     */
    public void setVersion(String version) {
        this.version = version;
    }

    /**
     * 平台ios/android
     */
    public String getPlatform() {
        return platform;
    }

    /**
     * 平台ios/android
     */
    public void setPlatform(String platform) {
        this.platform = platform;
    }

    /**
     * 下载更新地址
     */
    public String getDownUrl() {
        return downUrl;
    }

    /**
     * 下载更新地址
     */
    public void setDownUrl(String downUrl) {
        this.downUrl = downUrl;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", updateNum=").append(updateNum);
        sb.append(", content=").append(content);
        sb.append(", version=").append(version);
        sb.append(", platform=").append(platform);
        sb.append(", downUrl=").append(downUrl);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SuperAppVersion other = (SuperAppVersion) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getUpdateNum() == null ? other.getUpdateNum() == null : this.getUpdateNum().equals(other.getUpdateNum()))
            && (this.getContent() == null ? other.getContent() == null : this.getContent().equals(other.getContent()))
            && (this.getVersion() == null ? other.getVersion() == null : this.getVersion().equals(other.getVersion()))
            && (this.getPlatform() == null ? other.getPlatform() == null : this.getPlatform().equals(other.getPlatform()))
            && (this.getDownUrl() == null ? other.getDownUrl() == null : this.getDownUrl().equals(other.getDownUrl()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUpdateNum() == null) ? 0 : getUpdateNum().hashCode());
        result = prime * result + ((getContent() == null) ? 0 : getContent().hashCode());
        result = prime * result + ((getVersion() == null) ? 0 : getVersion().hashCode());
        result = prime * result + ((getPlatform() == null) ? 0 : getPlatform().hashCode());
        result = prime * result + ((getDownUrl() == null) ? 0 : getDownUrl().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }
}